/**
 * FireFly (2011)
 */
package com.firefly.logging.simple;

import com.firefly.logging.AbstractLoggerPluginInstance;
import com.firefly.logging.ILoggerPlugin;
import com.firefly.logging.Logger.Level;

/**
 * Empty Logger 实例
 * 
 * @version 1.0 2011-1-1
 * @author lexloo(lexloo@gmail.com)
 * @since FireFly 1.0
 */
public class SimpleLoggerPluginInstance extends AbstractLoggerPluginInstance {

	/**
	 * 构造函数
	 * 
	 * @param name
	 *            名称
	 * @param loggerPlugin
	 *            日志插件
	 */
	public SimpleLoggerPluginInstance(String name, ILoggerPlugin loggerPlugin) {
		super(name, loggerPlugin);
	}

	@Override
	protected void log(Level level, String loggerFqcn, String message) {
		System.out.println(level + ":" + message);
	}

	@Override
	public boolean isEnabled(Level level) {
		return true;
	}
}
